-- GENERATED SPELL FOR [Rothos] --


function spell0_5718(pUnit, Event) --@Corrosive Acid Breath,n/a--
pUnit:FullCastSpellOnTarget(20667,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5718', 30000, 1)
end

function spell1_5718(pUnit, Event) --@Fade,Self--
pUnit:FullCastSpellOnTarget(20672,pUnit)
pUnit:RegisterEvent('Sorts_5718', 3259, 1)
end

function Sorts_5718(pUnit, Event)
local choix_sorts_5718 = math.random(0, 1)
if choix_sorts_5718 == 0 then
pUnit:RegisterEvent('spell0_5718', 1, 1)
end
if choix_sorts_5718 == 1 then
pUnit:RegisterEvent('spell1_5718', 1, 1)
end
end

function mob5718_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5718', math.random(1500, 3000), 1)
end

function mob5718_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5718_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5718_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5718, 1, 'mob5718_Action')
RegisterUnitEvent(5718, 2, 'mob5718_Leave')
RegisterUnitEvent(5718, 3, 'mob5718_Kill')
RegisterUnitEvent(5718, 4, 'mob5718_Die')
